package icu.xuyijie.springbootlearning2.chapter3.mybatis;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

/**
 * @author 徐一杰
 * @date 2025/02/24 16:00
 * @description
 */
@Schema(title = "这是数据库返回的数据格式")
public class MyEntity {
    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "插入时间")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "MyEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", create_time=" + createTime +
                '}';
    }
}
